package com.zj.inoutput.service.user;

import com.zj.inoutput.dal.dataobj.User;
import com.zj.inoutput.model.request.user.UserParam;
import com.zj.inoutput.model.response.user.UserExportDTO;

import java.util.List;

/**
 * @author DuanYu <a>Email:z-houjie@qq.com</a>
 * @date 2022-02-08 15:56
 */
public interface UserService {

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 查询用户信息
     *
     * @param p 查询参数
     * @return 用户列表
     */
    List<UserExportDTO> findExportData(UserParam p);
}
